package com.xisoft.devise.entity.metadata;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author 作者：licheng
 * @description 类描述：SYS_FUNCTION_TYPE .
 * @create 创建时间：20220829
 * @update 修改时间：20220829
 */
@lombok.Data
@Table (name = "sys_function_type")
@TableName (value = "sys_function_type")
@ApiModel (description = "sys_function_type .")
public class FunctionTypeVO
{
    /** description： null */
    public static String SPT_ID = "spt_id";
    /** description： null */
    public static String SPT_PID = "spt_pid";
    /** description： null */
    public static String SPT_NAME = "spt_name";
    /** description： null */
    public static String SPT_INDEX = "spt_index";
    /** description： null */
    public static String FYCODE = "fycode";
    // null
    @Id
    @TableId (type = IdType.INPUT)
    @TableField (value = "SPT_ID")
    @Column (name = "SPT_ID")
    // @ApiModelProperty (value = "null")
    @ApiModelProperty (value = "null：主键")
    private String spt_id;
    // null
    @TableField (value = "SPT_PID")
    @Column (name = "SPT_PID")
    // @ApiModelProperty (value = "null")
    @ApiModelProperty (value = "null：主键")
    private String spt_pid;
    // null
    @TableField (value = "SPT_NAME")
    @Column (name = "SPT_NAME")
    // @ApiModelProperty (value = "null")
    @ApiModelProperty (value = "null：主键")
    private String spt_name;
    // null
    @TableField (value = "SPT_INDEX")
    @Column (name = "SPT_INDEX")
    // @ApiModelProperty (value = "null")
    @ApiModelProperty (value = "null：主键")
    private double spt_index;
    // null
    @TableField (value = "FYCODE")
    @Column (name = "FYCODE")
    // @ApiModelProperty (value = "null")
    @ApiModelProperty (value = "null：主键")
    private String fycode;

    public FunctionTypeVO( ) { }

    /************************************************************* <br>
     *
     *说明: get(null)方法<br>
     *
     * @Description 方法描述：null <br>
     * @Date Created on 20220829  <br>
     * @return java.lang.String  <br>
     * @Author libencheng
     * @version 1.0 <br>
     ************************************************************* <br>
     */
    public String getSpt_id( )
    { return spt_id; }

    /************************************************************* <br>
     *
     *说明: set(null)方法<br>
     *
     * @Description 方法描述：null <br>
     * @Date Created on 20220829  <br>
     * @Param [spt_id] <br>
     * @return void  <br>
     * @Author xisoft
     * @version 1.0 <br>
     ************************************************************* <br>
     */
    public void setSpt_id(String spt_id)
    { this.spt_id = spt_id; }

    /************************************************************* <br>
     *
     *说明: get(null)方法<br>
     *
     * @Description 方法描述：null <br>
     * @Date Created on 20220829  <br>
     * @return java.lang.String  <br>
     * @Author libencheng
     * @version 1.0 <br>
     ************************************************************* <br>
     */
    public String getSpt_pid( )
    { return spt_pid; }

    /************************************************************* <br>
     *
     *说明: set(null)方法<br>
     *
     * @Description 方法描述：null <br>
     * @Date Created on 20220829  <br>
     * @Param [spt_pid] <br>
     * @return void  <br>
     * @Author xisoft
     * @version 1.0 <br>
     ************************************************************* <br>
     */
    public void setSpt_pid(String spt_pid)
    { this.spt_pid = spt_pid; }

    /************************************************************* <br>
     *
     *说明: get(null)方法<br>
     *
     * @Description 方法描述：null <br>
     * @Date Created on 20220829  <br>
     * @return java.lang.String  <br>
     * @Author libencheng
     * @version 1.0 <br>
     ************************************************************* <br>
     */
    public String getSpt_name( )
    { return spt_name; }

    /************************************************************* <br>
     *
     *说明: set(null)方法<br>
     *
     * @Description 方法描述：null <br>
     * @Date Created on 20220829  <br>
     * @Param [spt_name] <br>
     * @return void  <br>
     * @Author xisoft
     * @version 1.0 <br>
     ************************************************************* <br>
     */
    public void setSpt_name(String spt_name)
    { this.spt_name = spt_name; }

    /************************************************************* <br>
     *
     *说明: get(null)方法<br>
     *
     * @Description 方法描述：null <br>
     * @Date Created on 20220829  <br>
     * @return java.lang.String  <br>
     * @Author libencheng
     * @version 1.0 <br>
     ************************************************************* <br>
     */
    public double getSpt_index( )
    { return spt_index; }

    /************************************************************* <br>
     *
     *说明: set(null)方法<br>
     *
     * @Description 方法描述：null <br>
     * @Date Created on 20220829  <br>
     * @Param [spt_index] <br>
     * @return void  <br>
     * @Author xisoft
     * @version 1.0 <br>
     ************************************************************* <br>
     */
    public void setSpt_index(double spt_index)
    { this.spt_index = spt_index; }

    /************************************************************* <br>
     *
     *说明: get(null)方法<br>
     *
     * @Description 方法描述：null <br>
     * @Date Created on 20220829  <br>
     * @return java.lang.String  <br>
     * @Author libencheng
     * @version 1.0 <br>
     ************************************************************* <br>
     */
    public String getFycode( )
    { return fycode; }

    /************************************************************* <br>
     *
     *说明: set(null)方法<br>
     *
     * @Description 方法描述：null <br>
     * @Date Created on 20220829  <br>
     * @Param [fycode] <br>
     * @return void  <br>
     * @Author xisoft
     * @version 1.0 <br>
     ************************************************************* <br>
     */
    public void setFycode(String fycode)
    { this.fycode = fycode; }


    /** description 表主键 */
    public static String PRIMARY_KEY = SPT_ID;

    /************************************************************* <br>
     *
     *description: 获取主键 <br>
     *
     * @Description   <br>
     * @Date Created on 20220829  <br>
     * @return java.lang.String  <br>
     * @Author xisoft
     * @version 1.0 <br>
     ************************************************************* <br>
     */
    public static String getPrimarykey( ) { return SPT_ID; }

    /** description 表 . */
    public static String TABLE_NAME = "sys_function_type";

    /************************************************************* <br>
     *
     *说明: 获取表名 <br>
     *
     * @Description   <br>
     * @Date Created on 20220829  <br>
     * @return java.lang.String  <br>
     * @Author libc
     * @version 1.0 <br>
     ************************************************************* <br>
     */
    public static String getTableName( )
    { return FunctionTypeVO.class.getAnnotation(TableName.class).value(); }

    /************************************************************* <br>
     *
     *说明: 获取所有的字段名 <br>
     *
     * @Description   <br>
     * @Date Created on 20220829  <br>
     * @return java.lang.String  <br>
     * @Author licheng
     * @version 1.0 <br>
     ************************************************************* <br>
     */
    public static String[] getColumns( )
    {
        return new String[]{
                SPT_ID,
                SPT_PID,
                SPT_NAME,
                SPT_INDEX,
                FYCODE,
        };
    }

    /************************************************************* <br>
     *
     *说明: 重写tostring 方法，以map格式返回String <br>
     *
     * @Description   <br>
     * @Date Created on 20220829  <br>
     * @return java.lang.String   <br>
     * @Author xisoft
     * @version 1.0 <br>
     ************************************************************* <br>
     */
    @Override public String toString( )
    {
        return "{ sys_function_type = {" +
                "spt_id=" + getSpt_id() +
                ",spt_pid=" + getSpt_pid() +
                ",spt_name=" + getSpt_name() +
                ",spt_index=" + getSpt_index() +
                ",fycode=" + getFycode() +
                "}}";
    }
}
